#include<iostream>
using namespace std;
#ifndef STRING_ARRAY_H
#define STRING_ARRAY_H
class myStr{
    public:
    char *string;
    int length;
    int *next;
    int *nextval;
    myStr(const char *a);
    void print();
    void kmp_next();
    void kmp_nextVal();
    void printNext();
    void printNextVal();
};
bool replaceStr(myStr& S, const int& start, const myStr& T, const myStr& V);
int simpleMatch(const myStr& S, const myStr& T);
int kmpMatch(const myStr& S, const myStr& T);
class myMatrix{
    public:
    int len;
    int *Mymatrix;
    myMatrix(const int& rNum, const int& cNum, const int& nNum, const int* p);
    myMatrix();
    void FastTransposeSMatrix(myMatrix& T);
    void printMatrix();
};
#endif